package gavdi.dk.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;



public class AbsenceRegistration extends Event {

	private Absence absence;
	public AbsenceRegistration() {
		super();
		absence = new Absence();

	}

	public Absence getAbsence() {
		return absence;
	}

	public void setAbsence(Absence absence) {
		this.absence = absence;
	}

	public AbsenceRegistration(String id, String date, String hours,
			String status, String comment, String type, String userID, Absence absence) {
		super(id, date, hours, status, comment, type, userID);
		this.absence = absence;
	}

	public int compareTo(Event another) {
		//Have to be implemented
		return -1;
	}

	@Override
	public String toString() {
		return super.toString() + absence.toString();
	}



	


	


}

